package com.isesol.service.impl;

import com.isesol.dao.*;
import com.isesol.model.*;
import com.isesol.service.*;
import org.springframework.beans.factory.annotation.*;
import org.springframework.stereotype.*;

import java.util.*;


@Service
public class ClubServiceImpl implements IClubService {

    @Autowired
    ClubMapper clubMapper;

    public List<Club> getClubsByType(int typeId) {

        return clubMapper.getClubByType(typeId);
    }

    public Club getClubDetailById(int clubId) {

        return clubMapper.getClubById(clubId);
    }

    public List<Club> getClubDetailByName(String likeName) {

        return clubMapper.getClubByLikeName(likeName);
    }

    public List<ClubMember> getClubMember(int clubId) {

        return clubMapper.getClubMember(clubId);
    }
}
